<?
	global $db, $layouts, $LayoutMain;
	
	$sql = "select * from layout where active = 1 and home = 1 order by id desc limit 8";
	
	$layouts = $db->getAll($sql);
	
	include(UC_DIR_TPL.'LayoutMain.ctp');
?>